package com.example.demo.service.impl;

import com.example.demo.entity.Entertainment;
import com.example.demo.mapper.KyMapper;
import com.example.demo.service.KyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class KyServiceImpl implements KyService {
    @Autowired
    private KyMapper kyMapper;

    @Override
    public List<Entertainment> findKy() {
        return kyMapper.findKy();
    }

    @Override
    public void addKy(Map<String, String> map) {
        kyMapper.addKy(map);
    }

    @Override
    public void updateKy(Map<String, String> map) {
        kyMapper.updateKy(map);
    }

    @Override
    public void delByEid(String eid) {
        kyMapper.delByEid(eid);
    }

    @Override
    public Entertainment findByEid(String eid) {
        return kyMapper.findByEid(eid);
    }
}
